import { createI18n } from 'vue-i18n'
import messages from './requireLang'
import { ZH } from '@/constants/base.contant'

// vue组件
const I18n: any = createI18n({
  fallbackLocale: ZH,
  allowComposition: true,
  locale: localStorage.getItem('language') || ZH,
  legacy: false,
  messages
})

export default I18n
